summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCharles Lombardo <clombardo169@gmail.com>2023-03-07 23:19:48 +0100
committerbunnei <bunneidev@gmail.com>2023-06-03 09:05:36 +0200
commit6e7fdcb48469d9b469cea9675eff41f7ba27fac3 (patch)
tree865f41e5e543c42261e4017d20bc0299715d898b
parentandroid: Convert FloatSetting to Kotlin (diff)
downloadyuzu-6e7fdcb48469d9b469cea9675eff41f7ba27fac3.tar
yuzu-6e7fdcb48469d9b469cea9675eff41f7ba27fac3.tar.gz
yuzu-6e7fdcb48469d9b469cea9675eff41f7ba27fac3.tar.bz2
yuzu-6e7fdcb48469d9b469cea9675eff41f7ba27fac3.tar.lz
yuzu-6e7fdcb48469d9b469cea9675eff41f7ba27fac3.tar.xz
yuzu-6e7fdcb48469d9b469cea9675eff41f7ba27fac3.tar.zst
yuzu-6e7fdcb48469d9b469cea9675eff41f7ba27fac3.zip
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/IntSetting.java23
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/IntSetting.kt9
2 files changed, 9 insertions, 23 deletions
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/IntSetting.java b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/IntSetting.java
deleted file mode 100644
index 001f27579..000000000
--- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/IntSetting.java
+++ /dev/null
@@ -1,23 +0,0 @@
-package org.yuzu.yuzu_emu.features.settings.model;
-
-public final class IntSetting extends Setting {
- private int mValue;
-
- public IntSetting(String key, String section, int value) {
- super(key, section);
- mValue = value;
- }
-
- public int getValue() {
- return mValue;
- }
-
- public void setValue(int value) {
- mValue = value;
- }
-
- @Override
- public String getValueAsString() {
- return Integer.toString(mValue);
- }
-}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/IntSetting.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/IntSetting.kt
new file mode 100644
index 000000000..a5f976f4e
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/IntSetting.kt
@@ -0,0 +1,9 @@
+package org.yuzu.yuzu_emu.features.settings.model
+
+class IntSetting(
+ key: String,
+ section: String,
+ var value: Int
+) : Setting(key, section) {
+ override val valueAsString = value.toString()
+}